import { request, METHOD } from '@/utils/request'

const api_prefix = '/user'

// 获取验证码
export async function get_verifyCode() {
  return request(api_prefix + '/code', METHOD.GET)
}

// 注册
export async function register(params) {
  return request(api_prefix + '/register', METHOD.POST, params)
}

// 登录
export async function login(params) {
  return request(api_prefix + '/login', METHOD.POST, params)
}